<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/jsp/common/head.jsp"%>

<div class="right">
	<div class="location">
		<strong>你现在所在的位置是:</strong> <span>薪资管理页面</span>
	</div>
	<div class="search">
		<form method="get"
			action="${pageContext.request.contextPath }/finance/list">
			<span>员工姓名：</span> <input name="queryEmpName" class="input-text"
				type="text" value="${empName}" style="width: 124px; "> <span>查询年份：</span>
			<input name="queryYear" class="input-text" type="text"
				value="${year}" style="width: 124px; "> <span>查询月份：</span> <input
				name="queryMonth" class="input-text" type="text" value="${month}"
				style="width: 124px; "> <span>部门名称：</span><select
				name="queryDepId">
				<c:if test="${deplist != null }">
					<option value="0">--请选择--</option>
					<c:forEach var="depatement" items="${deplist}">
						<option
							<c:if test="${depatement.depId == queryDepId }">selected="selected"</c:if>
							value="${depatement.depId}">${depatement.depName}</option>
					</c:forEach>
				</c:if>
			</select> <input type="hidden" name="pageIndex" value="1" /> <input
				value="查 询" type="submit" id="searchbutton">
		</form>
		<form action="import" enctype="multipart/form-data" method="post">
			<input type="file" name="upfile" /> 
			<input type="submit" value="导入Excel薪资" />
		</form>

		<a href="${pageContext.request.contextPath}/finance/export?filename=finance">导出薪资表</a>
	</div>
	<!--供应商操作表格-->
	<table class="providerTable" cellpadding="0" cellspacing="0">
		<tr class="firstTr">
			<th width="10%">工资年份/月份</th>
			<th width="10%">职工编号</th>
			<th width="10%">职工姓名</th>
			<th width="10%">部门名称</th>
			<th width="10%">岗位名称</th>
			<th width="10%">基本工资</th>
			<th width="10%">考勤工资</th>
			<th width="10%">实发工资</th>
			<th width="30%">操作</th>
		</tr>
		<c:forEach var="finance" items="${financelist}" varStatus="status">
			<tr>
				<td><span>${finance.year }年/${finance.month }月</span></td>
				<td><span>${finance.empId }</span></td>
				<td><span>${finance.empName}</span></td>
				<td><span>${finance.depName}</span></td>
				<td><span>${finance.jobName}</span></td>
				<td><span>${finance.basePay}</span></td>
				<td><span>${finance.kaoqinPay}</span></td>
				<td><span>${finance.realPay}</span></td>
				<td><span> <%-- <a class="dayinFinance" href="javascript:;"
						finid=${finance.id } empName=${finance.empName }><img
							src="${pageContext.request.contextPath }/statics/images/xiugai.png"
							alt="打印" title="打印" /></a></span> --%> <span><a
							class="deleteFinance" href="javascript:;" finid=${finance.id }
							empName=${finance.empName }><img
								src="${pageContext.request.contextPath }/statics/images/schu.png"
								alt="删除" title="删除" /></a></span></td>
			</tr>
		</c:forEach>
	</table>
	<input type="hidden" id="totalPageCount"
		value="${pages.totalPageCount}" />
	<c:import url="/WEB-INF/jsp/rollpage.jsp">
		<c:param name="totalCount" value="${pages.totalCount}" />
		<c:param name="currentPageNo" value="${pages.currentPageNo}" />
		<c:param name="totalPageCount" value="${pages.totalPageCount}" />
	</c:import>
</div>
</section>

<!--点击删除按钮后弹出的页面-->
<div class="zhezhao"></div>
<div class="remove" id="removeProv">
	<div class="removerChid">
		<h2>提示</h2>
		<div class="removeMain">
			<p>你确定要删除该员工工资吗？</p>
			<a href="#" id="yes">确定</a> <a href="#" id="no">取消</a>
		</div>
	</div>
</div>

<%@include file="/WEB-INF/jsp/common/foot.jsp"%>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/statics/js/financelist.js"></script>
